﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FaceMessanger.Web
{
    public class Message
    {
        public String Mesaj { get; set; }
        public DateTime Zaman { get; set; }
        public Boolean Okundumu
        {
            get;
            set;

        }
    }
    public class Messanger
    {
        public Guid Id { get; set; }
        public Guid ReciverId { get; set; }
        public Members SendMember { get; set; }
        public Members ReciverMember { get; set; }
        public List<Message> MessageList { get; set; }
    }

    public class MessangerUser
    {
        public Guid Id { get; set; }
        public int Status { get; set; }
    }
    public class Singleton
    {
        public List<MessangerUser> MessangerUserList;
        public List<Messanger> MessangerList;
        private static Singleton instance;
        private Singleton()
        {
            MessangerUserList = new List<MessangerUser>();
            MessangerList = new List<Messanger>();

        }
        public static Singleton Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new Singleton();
                }
                return instance;
            }
        }

    }
}